<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!-- <h4>分类标题</h4> -->
	    <div class="row">
	      <div class="col-md-12 layout-header">
	        <button id="addBtn_HgRdr1" type="button" class="btn btn-default"><t:mutiLang langKey="common.add"/></button>
	        <button id="delBtn_HgRdr1" type="button" class="btn btn-default"><t:mutiLang langKey="common.delete"/></button>
	        <script type="text/javascript"> 
			$('#addBtn_HgRdr1').bind('click', function(){   
		 		 var tr =  $("#add_hgRdr1_table_template tr").clone();
			 	 $("#add_hgRdr1_table").append(tr);
			 	 resetTrNum('add_hgRdr1_table');
			 	 return false;
		    });  
			$('#delBtn_HgRdr1').bind('click', function(){   
		       $("#add_hgRdr1_table").find("input:checked").parent().parent().remove();   
		        resetTrNum('add_hgRdr1_table');
		        return false;
		    });
		    $(document).ready(function(){
		    	if(location.href.indexOf("load=detail")!=-1){
					$(":input").attr("disabled","true");
					$(".datagrid-toolbar").hide();
				}
		    	resetTrNum('add_hgRdr1_table');
		    });
		</script>
	      </div>
	    </div>
<div style="margin: 0 15px; background-color: white;">    
	    <!-- Table -->
      <table id="hgRdr1_table" class="table table-bordered table-hover" style="margin-bottom: 0;">
		<thead>
	      <tr>
	        <th style="white-space:nowrap;width:50px;"><t:mutiLang langKey="sequence.name"/></th>
	        <th style="white-space:nowrap;width:50px;"><t:mutiLang langKey="common.operate"/></th>
					  <th>
						  <t:mutiLang langKey="hg.l4"/>
					  </th>
					  <th>
						  <t:mutiLang langKey="hg.l5"/>
					  </th>
					  <th>
						  <t:mutiLang langKey="hg.l6"/>
					  </th>
	      </tr>
	    </thead>
        
	<tbody id="add_hgRdr1_table">	
	<c:if test="${fn:length(hgRdr1List)  <= 0 }">
			<tr>
				<th scope="row"><div name="xh"></div></th>
				<td><input style="width:20px;" type="checkbox" name="ck"/></td>
					<input name="hgRdr1List[0].id" type="hidden"/>
					<input name="hgRdr1List[0].createName" type="hidden"/>
					<input name="hgRdr1List[0].createBy" type="hidden"/>
					<input name="hgRdr1List[0].createDate" type="hidden"/>
					<input name="hgRdr1List[0].updateName" type="hidden"/>
					<input name="hgRdr1List[0].updateBy" type="hidden"/>
					<input name="hgRdr1List[0].updateDate" type="hidden"/>
					<input name="hgRdr1List[0].sysOrgCode" type="hidden"/>
					<input name="hgRdr1List[0].sysCompanyCode" type="hidden"/>
					<input name="hgRdr1List[0].bpmStatus" type="hidden"/>
					<input name="hgRdr1List[0].linenum" type="hidden"/>
					<input name="hgRdr1List[0].docentry" type="hidden"/>
				  <td>
					  	<input name="hgRdr1List[0].itemname" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.l4"/></label>
					</td>
				  <td>
					  	<input name="hgRdr1List[0].quantity" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.l5"/></label>
					</td>
				  <td>
					  	<input name="hgRdr1List[0].hscode" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.l6"/></label>
					</td>
   			</tr>
	</c:if>
	<c:if test="${fn:length(hgRdr1List)  > 0 }">
		<c:forEach items="${hgRdr1List}" var="poVal" varStatus="stuts">
			<tr>
				<th scope="row"><div name="xh">${stuts.index+1 }</div></th>
				<td><input style="width:20px;" type="checkbox" name="ck"/></td>
					<input name="hgRdr1List[${stuts.index }].id" type="hidden" value="${poVal.id }"/>
					<input name="hgRdr1List[${stuts.index }].createName" type="hidden" value="${poVal.createName }"/>
					<input name="hgRdr1List[${stuts.index }].createBy" type="hidden" value="${poVal.createBy }"/>
					<input name="hgRdr1List[${stuts.index }].createDate" type="hidden" value="${poVal.createDate }"/>
					<input name="hgRdr1List[${stuts.index }].updateName" type="hidden" value="${poVal.updateName }"/>
					<input name="hgRdr1List[${stuts.index }].updateBy" type="hidden" value="${poVal.updateBy }"/>
					<input name="hgRdr1List[${stuts.index }].updateDate" type="hidden" value="${poVal.updateDate }"/>
					<input name="hgRdr1List[${stuts.index }].sysOrgCode" type="hidden" value="${poVal.sysOrgCode }"/>
					<input name="hgRdr1List[${stuts.index }].sysCompanyCode" type="hidden" value="${poVal.sysCompanyCode }"/>
					<input name="hgRdr1List[${stuts.index }].bpmStatus" type="hidden" value="${poVal.bpmStatus }"/>
					<input name="hgRdr1List[${stuts.index }].linenum" type="hidden" value="${poVal.linenum }"/>
					<input name="hgRdr1List[${stuts.index }].docentry" type="hidden" value="${poVal.docentry }"/>
				   <td align="left">
					  	<input name="hgRdr1List[${stuts.index }].itemname" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore"  value="${poVal.itemname }"/>
					  <label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.l4"/></label>
				   </td>
				   <td align="left">
					  	<input name="hgRdr1List[${stuts.index }].quantity" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore"  value="${poVal.quantity }"/>
					  <label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.l5"/></label>
				   </td>
				   <td align="left">
					  	<input name="hgRdr1List[${stuts.index }].hscode" maxlength="32" type="text" class="form-control"  style="width:120px;"  ignore="ignore"  value="${poVal.hscode }"/>
					  <label class="Validform_label" style="display: none;"><t:mutiLang langKey="hg.l6"/></label>
				   </td>
   			</tr>
		</c:forEach>
	</c:if>	
	</tbody>
</table>
